package car.aistar.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (UserRecords)实体类
 *
 * @author makejava
 * @since 2020-09-30 20:58:01
 */
public class UserRecords implements Serializable {
    private static final long serialVersionUID = 809875833020388623L;
    /**
     * 记录表序号
     */
    private Long id;
    /**
     * 浏览的车辆id
     */
    private Long cId;
    /**
     * 浏览时间
     */
    private Date recordTime;
    /**
     * 浏览用户id
     */
    private Long uId;
    /**
     * 浏览用户ip地址
     */
    private String uIp;

    public UserRecords() {
    }

    public UserRecords(Long cId, Date recordTime, Long uId, String uIp) {
        this.cId = cId;
        this.recordTime = recordTime;
        this.uId = uId;
        this.uIp = uIp;
    }

    public UserRecords(Long id, Long cId, Date recordTime, Long uId, String uIp) {
        this.id = id;
        this.cId = cId;
        this.recordTime = recordTime;
        this.uId = uId;
        this.uIp = uIp;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCId() {
        return cId;
    }

    public void setCId(Long cId) {
        this.cId = cId;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public Long getUId() {
        return uId;
    }

    public void setUId(Long uId) {
        this.uId = uId;
    }

    public String getUIp() {
        return uIp;
    }

    public void setUIp(String uIp) {
        this.uIp = uIp;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserRecords{");
        sb.append("id=").append(id);
        sb.append(", cId=").append(cId);
        sb.append(", recordTime=").append(recordTime);
        sb.append(", uId=").append(uId);
        sb.append(", uIp='").append(uIp).append('\'');
        sb.append('}');
        return sb.toString();
    }
}